package visitor;

import visitor.billtypes.BillType1;
import visitor.billtypes.BillType2;
import visitor.billtypes.BillType3;
import visitor.billtypes.BillType4;
import visitor.formatters.DefaultFormatter;

public class Main {
    public static void main(String[] args) {
        Context context = new Context();
        context.addBill(new BillType1("type1", "100"));
        context.addBill(new BillType2("type2", 100.0));
        context.addBill(new BillType3("type3", 100f));
        context.addBill(new BillType4("type4", 100));
        DefaultFormatter formatter = new DefaultFormatter();
        context.accept(formatter);
    }
}
